package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.newyearbag.NewYearBagDevice;
import com.yanqu.road.entity.activity.newyearbag.NewYearBagDrawConfig;
import com.yanqu.road.entity.activity.newyearbag.NewYearBagLimitConfig;
import com.yanqu.road.entity.activity.newyearbag.NewYearBagNotice;
import com.yanqu.road.entity.activity.newyearbag.NewYearBagPool;
import com.yanqu.road.entity.activity.newyearbag.NewYearBagUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class NewYearBagBusiness {

    public static List<NewYearBagLimitConfig> getNewYearBagLimitConfigList(int activityId) {
        return DaoHelper.getNewYearBagLimitConfigDaoImpl().getNewYearBagLimitConfigList(activityId);
    }

    public static List<NewYearBagDrawConfig> getNewYearBagDrawConfigList(int activityId) {
        return DaoHelper.getNewYearBagDrawConfigDaoImpl().getNewYearBagDrawConfigList(activityId);
    }


    public static List<NewYearBagNotice> getNewYearBagNoticeList(int activityId, int limit) {
        return DaoHelper.getNewYearBagNoticeDaoImpl().getNewYearBagNoticeList(activityId, limit);
    }

    public static boolean addNewYearBagNoticeList(NewYearBagNotice data) {
        return DaoHelper.getNewYearBagNoticeDaoImpl().add(data);
    }


    public static NewYearBagPool getNewYearBagPool(int activityId) {
        return DaoHelper.getNewYearBagPoolDaoImpl().getNewYearBagPool(activityId);
    }

    public static boolean addNewYearBagPool(NewYearBagPool data) {
        return DaoHelper.getNewYearBagPoolDaoImpl().add(data);
    }

    public static boolean updateNewYearBagPool(NewYearBagPool data) {
        return DaoHelper.getNewYearBagPoolDaoImpl().update(data);
    }


    public static Map<Long, NewYearBagUserData> getNewYearBagUserDataMap(int activityId) {
        return DaoHelper.getNewYearBagUserDataDaoImpl().getNewYearBagUserDataMap(activityId);
    }

    public static boolean addNewYearBagUserData(NewYearBagUserData data) {
        return DaoHelper.getNewYearBagUserDataDaoImpl().add(data);
    }

    public static boolean updateNewYearBagUserData(NewYearBagUserData data) {
        return DaoHelper.getNewYearBagUserDataDaoImpl().update(data);
    }

    public static Map<String, NewYearBagDevice> getNewYearBagDeviceMap(int activityId) {
        return DaoHelper.getNewYearBagDeviceDaoImpl().getNewYearBagDeviceMap(activityId);
    }

    public static boolean addNewYearBagDevice(NewYearBagDevice data) {
        return DaoHelper.getNewYearBagDeviceDaoImpl().add(data);
    }

    public static boolean updateNewYearBagDevice(NewYearBagDevice data) {
        return DaoHelper.getNewYearBagDeviceDaoImpl().update(data);
    }

}
